{extends file='layout/backstage/default.tpl'}
{block name=body}
<h1>
	<small>上传文件</small>
</h1>
<div class="span12" style="margin-top: 40px;">
	<div class="errMsgTip" style="margin-left: 72px;">
		<p id="errMsg" class="tipErr">{$errMsg|default:''}</p>
	</div>
	<div style="clear: both"></div>
	<form class="form-horizontal" action="/file_s/upload" method="post" enctype="multipart/form-data" id="myForm">
		<div class="control-group">
			<label for="file" class="control-label">选择文件：</label>
			<div class="controls">
				<input type="file" name="file" id="file" />
				<input type="text" value="{$file_uuid}" style="display:none;" name="file_id">
			</div>
		</div>
		<div class="control-group">
			<div class="controls">
				<button type="submit" class="btn btn-success" id="sub">上传</button>
				<button type="button" class="btn btn-success" id="cancle_upload">取消</button>
			</div>
		</div>
	</form> 
	<div class="progress progress-striped active" style="width:900px;margin-top:20px;height:30px;display: none" id="myprogress">
  		<div id="progress-bar" class="progress bar progress-bar-success" role="progressbar" 
  			style="height: 30px;"
  			aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">
    		<span class="sr-only" id="progress-num" style="font-size:14px;margin-top: 5px;display:inline-block;">0%</span>
 	 	</div>
	</div>

	
</div>
{/block}
{block name=foot}
<script src="/static/js/jquery.form.min.js?v={$smarty.const.UNCLONE_VERSION}"></script>
<script src="/static/js/file/upload.js?v={$smarty.const.UNCLONE_VERSION}"></script>
{/block}